package com.mmlc.utils;

import java.io.File;

/**
 * Created by Administrator on 2016/8/30.
 */
public class FileManager {

    public static void delete(String fileName) {
        if (ViewUtils.isEmpty(fileName)) return;
        File file = new File(fileName);
        if (file == null) return;
        if (file.isDirectory()) {
            for (int i = 0; i < file.listFiles().length; i++) {
                file.listFiles()[i].delete();
            }
        } else file.delete();
    }
}
